﻿$(document).ready(function() {
    var GT = $("#TdGT").val();
    //alert(GT);
    
    if (GT > 0) {
        $("#BtnPlaceOrder").show();
    }
    $('#TxtDate').keyup(function() {
        //e.stopPropagation();
        $('#TxtDate').val('');
    });
    $('#TxtDate').keydown(function() {
        //e.stopPropagation();
        $('#TxtDate').val('');
    });
    $('#PopUpDate').click(function() {
        $('#LblError').text('');
    });
});
function SetHF() {
    window.parent.$("#HFOrder").val('1');
}
function ChkDate() {
    var Txt = $("#TxtDate").val();
    var Res = new Boolean(true);
  if (Txt == null || Txt == "" || !(Trim(Txt).length > 0)) { $("#LblError").text("Please select date of delivery"); Res = false; }
    //alert(Txt);
    return Res;
}
function Trim(Str) { return Str.replace(/^\s+|\s+$/g, ""); }

